package com.bloveoa.zkkd.repository;

import com.bloveoa.zkkd.doman.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<UserModel, Integer> {

    UserModel queryByAddress(String address);
    UserModel queryByBoxMac(String boxMac);
    UserModel queryById(Integer id);
    boolean existsByBoxMac(String boxMac);
    boolean existsByAddress(String address);
}
